<template>
  <div>
    <p>vuex-left</p>
    <div>
      <button @click="addAction">提交</button>
      <button @click="reduce(3)">reduce</button>
    </div>
  </div>
</template>

<script>
import {mapMutations, mapActions} from 'vuex'
export default {
  data() {
    return {
      leftmsg: "left的数据",
    };
  },
  methods: {
//     add() {
//         this.$store.commit('add', 10)
//     },
//   },
...mapMutations(['add','reduce']),
...mapActions(['addAction'])
  }
};
</script>

<style>
</style>